Create a query

  1. In Microsoft Excel, on the Data menu, point to Get External Data, and then click New Database Query.
  2. Select the data source you want, and then enter the requested information. For help with this step, see the documentation that came with your ODBC drivers.
  3. In the Tables pane, use the Tables palette to add the tables you want.

    If the Tables palette is not displayed, click Show Tables.

  4. In the Fields pane, add the fields you want to appear in the result set.
  5. Click Test! to display the result set in the Data pane.
  6. When you finish retrieving the data you want, click Return Data to return the result set to Microsoft Excel.

Notes

Related topics

Setting up Microsoft Query to use a data source

Add a table to a query

Add or remove fields

Create a join

About using criteria

How joins affect the result set in a query

Return a result set to Microsoft Excel